<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 调查列表 | <font color=green><a href="__URL__/vote_list">【调查列表】</a></font><font color=green><a href="__URL__/add_vote">【添加调查】</a></font><font color=green><a href="__ACTION__">【刷新】</a></font></h1>
     </div>
     <div class="module_public_main">
        <table>
           <tr>
             <td width="8%" align="center">编号</td>
             <td align="center">调查标题</td>
             <td align="center">开始时间</td>
             <td align="center">结束时间</td>
             <td align="center">选项类型</td>
             <td align="center">是否过期</td>
             <td align="center">是否启用</td>
             <td align="center">操作</td>
           </tr>
           <?php if(is_array($v_info)): $k = 0; $__LIST__ = $v_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?><tr>
             <td width="8%" align="center"><?php echo ($k); ?></td>
             <td align="center"><?php echo ($v["v_title"]); ?></td>
             <td align="center"><?php echo (date("Y-m-d",$v["v_starttime"])); ?></td>
             <td align="center"><?php echo (date("Y-m-d",$v["v_endtime"])); ?></td>
             <?php if($v["v_type"] == '1'): ?><td align="center"><font color=green>单选</font></td>
             <?php else: ?>
             <td align="center"><font color=green>多选</font></td><?php endif; ?>
             <td align="center"><?php echo ($v["v_time"]); ?></td>
             <?php if($v["v_display"] == '1'): ?><td align="center"><font color=green>已启用</font></td>
             <?php else: ?>
             <td align="center"><font color=red>未启用</font></td><?php endif; ?>
             <td align="center">
                <a href="__URL__/edit_vote/v_id/<?php echo ($v["v_id"]); ?>">编辑</a> | 
                <a href="__URL__/item_list/v_id/<?php echo ($v["v_id"]); ?>/v_title/<?php echo ($v["v_title"]); ?>">选项管理</a> | 
                <a href="__URL__/user_list/v_id/<?php echo ($v["v_id"]); ?>">用户投票信息</a> |
                <a href="__URL__/del_vote/v_id/<?php echo ($v["v_id"]); ?>">删除</a> 
             </td>
           </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </table>
     </div>
  </div>
</body>
</html>